<%@page language="java" contentType="text/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@page import="java.util.ArrayList"%>
<%@ page import="java.util.*" %>
<%@ page import="Personal.Person" %>
<%@ page import="Personal.Doctor" %>
<%@ page import="Personal.Patient" %>
<fmt:setBundle basename="hospital"/>
<html>
<head>
<title>Patients contacts</title>


</head>
<jsp:useBean id="sessionUser" scope="session" class="Person"/>
<h2><fmt:message key="logged_in"/>:<a href="/show.do?id=${sessionUser.idPerson}">"${sessionUser.name}"</a><h2>

<jsp:useBean id="displayedUser" scope="request" class="Patient"/>
<h3><fmt:message key="doctor"/>: <a href="/show.do?id=${displayedUser.doctor.idPerson}">${displayedUser.doctor.name}</a></h3>

</body>
</html>